<%@page language="java"	import="com.tansuosoft.discoverx.web.accessory.FileOutput,com.tansuosoft.discoverx.model.Session"%><%
	com.tansuosoft.discoverx.web.JSPContext jspContext = new com.tansuosoft.discoverx.web.JSPContext(pageContext);
	String fullPath = jspContext.getLastMessage(null,true);
	jspContext.setNoCache();
	try{
		FileOutput.outputToResponse(fullPath,response);
	}catch(Exception ex){
		Session.setSessionParam(jspContext.getUserSession(), request.getSession(), Session.LASTERROR_PARAM_NAME_IN_HTTPSESSION, ex);
		jspContext.redirect(com.tansuosoft.discoverx.common.UrlConfig.URLCFGNAME_JSON_MESSAGE);
		return;
	}
	if("1".equals(request.getParameter("temp"))){FileOutput.deleteTempFile(fullPath);}
%>